package com.wtwd.campus.vcom.common;

/**
 * @Author: ldaoliang
 * @DateTime: 2022/1/4 16:03
 * @Description:
 */
public enum RespCode {
    SUCCESS(0, "成功"),
    FAIL(1, "失败"),

    TOKEN_UNAUTHORIZED(501, "token授权失败"),
    DEVICE_NOT_FOUND(502,"设备不存在"),
    ILLEGAL_OPERATION(503,"非法操作"),
    ACTION_ERROR(504,"号码类型错误"),

    REQUEST_DEAL_ERROR(600,"请求处理失败，请稍后重试或联系管理员"),
    WAITING_SEND(601,"前面还有同类型指令，该指令已保存但暂未发送"),
    TASK_DOING(602,"任务执行中"),
    FENCE_NOT_FOUNT(603,"围栏不存在"),
    PHONE_NUMBER_REPEAT(604,"号码重复设置"),
    DEVICE_OFF_LINE(605,"设备离线"),
    PHONE_NUMBER_OVER_LIMIT(606,"您设置的号码个数超过限定值"),
    PARAMS_ERROR(6010,"参数错误"),
    APP_KEY_NOT_FOUND(607,"appKey不存在"),
    APP_SECRET_ERROR(608,"appSecret错误"),
    IMEIS_NUM_ERROR(609,"请检查校验传入参数,imei号不存在,单次最大查询数量2000台"),
    PARAM_NOT_NULL(610,"参数丢失"),
    NO_lOCATION_DATA_IS_AVAILABLE(611,"暂无定位数据"),
    NO_REQUEST(612,"暂无该请求"),
    ;
    private int code;
    private String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
